import { request } from "@/utils";

export function addArticle(fromdata){
  return   request({
    url:'/addarticle',
    method:'POST',
    data:fromdata,
    headers:{
     'Content-Type': 'multipart/form-data'
    }
  })   
}
export function updateArticle(fromdata){
  return   request({
    url:'/updatearticle',
    method:'POST',
    data:fromdata,
    headers:{
     'Content-Type': 'multipart/form-data'
    }
  })   
}
export function finduserArticle(formdata){
  return request ({
    url:'/getuserarticle',
    method:'POST',
    data:formdata
  })
}
export function getArticlePicture(uuid){
  return request(
    {
      url:`/getarticlepicture?uuid=${uuid}`,
      method:'GET',
    }
  )
}